﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyPublisher.Emit
{
    public class EmitData
    {
        public string Title { get; set; }
        public string Summary { get; set; }
        public string Content { get; set; }

        public string Category { get; set; }
        public EmitPerson[] Authors { get; set; }
        public DateTime PublishDate { get; set; }
        public string Copyright { get; set; }

        public EmitData() 
        {
            this.Title = string.Empty;
            this.Summary = string.Empty;
            this.Content = string.Empty;
            this.Category = string.Empty;
            this.Authors = new EmitPerson[] { };
            this.PublishDate = DateTime.Now;
            this.Copyright = string.Empty;
        }

        public EmitData(string title, string summary, string content)
            :this()
        {
            this.Title = title;
            this.Summary = summary;
            this.Content = content;
        }
    }
}
